//package org.ddd.pattern.event.springboot.rocketmq.consume;
//
//import org.ddd.pattern.event.springboot.rocketmq.consume.interceptor.TransactionExecutor;
//import org.springframework.stereotype.Component;
//import org.springframework.transaction.support.TransactionTemplate;
//
//@Component
//public class TransactionTemplateExecutor implements TransactionExecutor {
//
//    public TransactionTemplate transactionTemplate;
//
//    public TransactionTemplateExecutor(TransactionTemplate transactionTemplate) {
//        this.transactionTemplate = transactionTemplate;
//    }
//
//    @Override
//    public void execute(Runnable run) {
//        transactionTemplate.execute( (status) -> {
//                    run.run();
//                    return null;
//                });
//    }
//}
